package arrage;

import java.util.ArrayList;

public class homework2 {
    public static void main(String[] args) {
        ArrayList<Student_homework2> list = new ArrayList<>();
        list.add(new Student_homework2("林泽霖",2205));
        list.add(new Student_homework2("林政佳",2206));
        list.add(new Student_homework2("林颖超",2204));
        list.add(new Student_homework2("林子程",2203));
        for (int i = 0; i < 4; i++) {
            System.out.println(list.get(i).getName()+list.get(i).getAge());
        }
    }
}
